    % Define coordinate ranges
x_min = 0; x_max = 10; % Example range for x
y_min = 5; y_max = 20; % Example range for y
% load('yourData.mat'); % Load the matrix, assuming it contains a variable F
% F = glbl_optm;  %%%%%%%%%%%%%%%%%%%%%%%%% edit


% F = 100*conv_rate.*glbl_optm./conv_step;    % performance index
% F = glbl_optm./conv_step;    % performance index


F = zeros(72,13);
for i = 1:72
    for j = 1:13
        if conv_step(i,j) ~= 0
            F(i,j) = 1*conv_rate(i,j)*glbl_optm(i,j)/conv_step(i,j);    % performance index
        else
            F(i,j) = 0;
        end
    end
end

F = F'; % transpose data

% Get matrix size
[m, n] = size(F);

% Create linearly spaced vectors for x and y
% x = linspace(0, 0.5, n);
% y = linspace(1.0, 6.0, m);
x = linspace(1.0, 8.1, n);
y = linspace(0, 0.6, m);


% Create meshgrid for plotting if needed
[X, Y] = meshgrid(x, y);


imagesc(x, y, F);
colormap jet;
colorbar;
axis xy; % Ensures correct orientation
xlabel('c_0');
ylabel('\beta');
% title('Colormap with Linear Mapped Axes');

clim([0 0.0185]) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

xticks = get(gca, 'XTick');
yticks = get(gca, 'YTick');

% Format tick labels to two decimal places
xticklabels = arrayfun(@(v) sprintf('%.1f', v), xticks, 'UniformOutput', false);
yticklabels = arrayfun(@(v) sprintf('%.2f', v), yticks, 'UniformOutput', false);

set(gca, 'XTickLabel', xticklabels);
set(gca, 'YTickLabel', yticklabels);

% Set y-ticks to all y values
set(gca, 'YTick', y);

% Format y-tick labels (2 decimal places)
yticklabels = arrayfun(@(v) sprintf('%.2f', v), y, 'UniformOutput', false);
set(gca, 'YTickLabel', yticklabels);

% Set y-ticks to all y values
set(gca, 'YTick', y);
yticklabels = arrayfun(@(v) sprintf('%.2f', v), y, 'UniformOutput', false);
set(gca, 'YTickLabel', yticklabels);

% pcolor(X, Y, F);
% shading interp;
% colormap jet;
% colorbar;
% xlabel('c_0');
% ylabel('\beta');
% title('Pcolor with Scaled Axes');


% surf(X, Y, F);
% shading interp;
% colormap jet;
% colorbar;
% view(2); % Top-down view
% xlabel('c_0');
% ylabel('\beta');
% title('Surface Plot with Scaled Axes');